#include<cstdio>
#include<cstdlib>
#include<iostream>
using namespace std;
char *strcpy(char *src){
	int i,count=0;
	char *c=src,*src1;
	while(*c!='\0'){
		count++;
		c++;
	}
	src1=(char*)malloc(sizeof(char)*(count+1));
		for(i=0;i<count;i++)
		src1[i]=src[i];
		src1[i]='\0';
		return src1;
}
int main(){
	char *src="hello",*src1;
	src1=strcpy(src);
	cout<<src1;
	return 0;
}
